home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 1.toast / pc / tool chest / development kits / hypercard related / xcmds & xfcns / progresswindoidÑc / progresswindoid / cards.xml < prev    next >
Encoding:
Text File  |  1992-01-15  |  44.6 KB  |  1,275 lines

  1. card_3903.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3903</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>4419</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_2096.css" />
  12.     <part>
  13.         <id>93</id>
  14.         <type>button</type>
  15.         <visible> <true /> </visible>
  16.         <reserved5> 0 </reserved5>
  17.         <reserved4> 0 </reserved4>
  18.         <reserved3> 0 </reserved3>
  19.         <reserved2> 0 </reserved2>
  20.         <reserved1> 0 </reserved1>
  21.         <enabled> <true /> </enabled>
  22.         <rect>
  23.             <left>27</left>
  24.             <top>159</top>
  25.             <right>331</right>
  26.             <bottom>198</bottom>
  27.         </rect>
  28.         <style>shadow</style>
  29.         <showName> <true /> </showName>
  30.         <highlight> <false /> </highlight>
  31.         <autoHighlight> <false /> </autoHighlight>
  32.         <sharedHighlight> <true /> </sharedHighlight>
  33.         <family>0</family>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>center</textAlign>
  37.         <font>Chicago</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <name>Go</name>
  41.         <script>on mouseUp
  42. StartDemonstration
  43. end mouseUp
  44.  
  45. </script>
  46.     </part>
  47.     <part>
  48.         <id>94</id>
  49.         <type>button</type>
  50.         <visible> <true /> </visible>
  51.         <reserved5> 0 </reserved5>
  52.         <reserved4> 0 </reserved4>
  53.         <reserved3> 0 </reserved3>
  54.         <reserved2> 0 </reserved2>
  55.         <reserved1> 0 </reserved1>
  56.         <enabled> <true /> </enabled>
  57.         <rect>
  58.             <left>337</left>
  59.             <top>159</top>
  60.             <right>485</right>
  61.             <bottom>198</bottom>
  62.         </rect>
  63.         <style>shadow</style>
  64.         <showName> <true /> </showName>
  65.         <highlight> <false /> </highlight>
  66.         <autoHighlight> <false /> </autoHighlight>
  67.         <sharedHighlight> <true /> </sharedHighlight>
  68.         <family>0</family>
  69.         <titleWidth>0</titleWidth>
  70.         <icon>0</icon>
  71.         <textAlign>center</textAlign>
  72.         <font>Chicago</font>
  73.         <textSize>12</textSize>
  74.         <textStyle>plain</textStyle>
  75.         <name>Stop</name>
  76.         <script>on mouseUp
  77. StopDemonstration
  78. end mouseUp
  79.  
  80. </script>
  81.     </part>
  82.     <content>
  83.         <layer>background</layer>
  84.         <id>16</id>
  85.         <text>Card 2 of 2</text>
  86.     </content>
  87.     <content>
  88.         <layer>background</layer>
  89.         <id>19</id>
  90.         <text>ProgressWindoid Package -- HyperTalk code for Progress Windows</text>
  91.     </content>
  92.     <content>
  93.         <layer>background</layer>
  94.         <id>20</id>
  95.         <text>The code in this card can be pasted into any stack, background, or card that wants to manage ProgressWindoids.  
  96.  
  97. There is also a quick demonstration of it which is accessed by the buttons below.</text>
  98.     </content>
  99.     <name></name>
  100.     <script>‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ ProgressWindoid Package
  101. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ by Chris Thorman, Apple Computer 1990
  102. ••••••
  103. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Permission granted for use as long as this message appears.
  104.  
  105. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ CreateProgressWindoid
  106. ••••
  107. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Note: This handler avoids creating two windoids with the same
  108. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ name.  If there is an error, then a dialog box is presented.
  109. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ All arguments except for the first two are optional.
  110.  
  111. on CreateProgressWindoid Name, Loc, Width, Text, Fraction, Font, Size
  112.  
  113. if there is not a window WindowName then
  114.  
  115. put ProgressWindoid(Name, Loc, Width, Text, Fraction, Font, Size) ¬¨
  116. into XFCNResult
  117.  
  118. if XFCNResult is not empty then
  119. answer XFCNResult
  120. exit CreateProgressWindoid
  121. end if
  122.  
  123. end if
  124.  
  125. show window Name
  126. end CreateProgressWindoid
  127.  
  128. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ ShowProgressInWindoid
  129. ••••
  130. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ This handler updates a windoid that was created with
  131. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ CreateProgressWindoid to show a new percentage of
  132. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ completion.  LowBound and HighBound are the numeric limits
  133. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ that are to be represented in the Windoid.  Count is a number
  134. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ between LowBound and HighBound, inclusive, that represents
  135. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢ the completion level.
  136.  
  137. on ShowProgressInWindoid WindoidName, LowBound, HighBound, Count
  138. set the fraction of window WindoidName to Count/(HighBound-LowBound)
  139. end ShowProgressInWindoid
  140.  
  141. •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  142. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢                         Demo Code                        ‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  143. •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  144.  
  145. on idle
  146. ContinueDemonstration
  147. end idle
  148.  
  149. on StartDemonstration
  150. global DoingDemonstration
  151. put true into DoingDemonstration
  152.  
  153. -- create two windoids, one to count seconds, one to count minutes
  154. put the rect of target into TheRect -- the rect of the button hit by the user
  155. put item 1 of TheRect & "," & (item 2 of TheRect) into MVLoc
  156. put item 1 of TheRect & "," & (item 2 of TheRect + 80) into MHLoc
  157. put item 3 of TheRect - item 1 of TheRect into TheWidth
  158.  
  159. CreateProgressWindoid "MouseH", MVLoc, TheWidth, "Mouse Horizontal Position"
  160. CreateProgressWindoid "MouseV", MHLoc, TheWidth, "Mouse Vertical Position"
  161.  
  162. end StartDemonstration
  163.  
  164. on ContinueDemonstration
  165. global DoingDemonstration
  166. if there is not a window "MouseH" or there is not a window "MouseV"
  167. then StopDemonstration
  168. if DoingDemonstration is true then
  169. ShowProgressInWindoid "MouseH", 0, width of card window, the mouseH
  170. ShowProgressInWindoid "MouseV", 0, height of card window, the mouseV
  171. end if
  172. end ContinueDemonstration
  173.  
  174. on StopDemonstration
  175. global DoingDemonstration
  176. put false into DoingDemonstration
  177. if there is a window "MouseH" then close window "MouseH"
  178. if there is a window "MouseV" then close window "MouseV"
  179. end StopDemonstration
  180. </script>
  181. </card>
  182.  
  183.  
  184. card_3591.xml
  185. <?xml version="1.0" encoding="utf-8" ?>
  186. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  187. <card>
  188.     <id>3591</id>
  189.     <filler1>0</filler1>
  190.     <cantDelete> <false /> </cantDelete>
  191.     <showPict> <true /> </showPict>
  192.     <dontSearch> <false /> </dontSearch>
  193.     <owner>4419</owner>
  194.     <link rel="stylesheet" type="text/css" href="stylesheet_2096.css" />
  195.     <part>
  196.         <id>45</id>
  197.         <type>field</type>
  198.         <visible> <true /> </visible>
  199.         <dontWrap> <false /> </dontWrap>
  200.         <dontSearch> <false /> </dontSearch>
  201.         <sharedText> <false /> </sharedText>
  202.         <fixedLineHeight> <true /> </fixedLineHeight>
  203.         <autoTab> <false /> </autoTab>
  204.         <lockText> <true /> </lockText>
  205.         <rect>
  206.             <left>20</left>
  207.             <top>168</top>
  208.             <right>116</right>
  209.             <bottom>181</bottom>
  210.         </rect>
  211.         <style>opaque</style>
  212.         <autoSelect> <false /> </autoSelect>
  213.         <showLines> <false /> </showLines>
  214.         <wideMargins> <false /> </wideMargins>
  215.         <multipleLines> <false /> </multipleLines>
  216.         <reservedFamily> 0 </reservedFamily>
  217.         <titleWidth>0</titleWidth>
  218.         <icon>0</icon>
  219.         <textAlign>left</textAlign>
  220.         <font>Geneva</font>
  221.         <textSize>9</textSize>
  222.         <textStyle>bold</textStyle>
  223.         <textHeight>9</textHeight>
  224.         <name>Label</name>
  225.         <script>‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Label field using Label Field Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  226.  
  227. on mouseDown
  228. LabelFieldClick
  229. pass mouseDown
  230. end mouseDown
  231.  
  232. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Truncating & Style-Fixing field using Valid Entry Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  233.  
  234. on closeField
  235. KeepOnlyVisibleLines
  236. UseTextStyleOfField
  237. pass closeField
  238. end closeField</script>
  239.     </part>
  240.     <part>
  241.         <id>20</id>
  242.         <type>field</type>
  243.         <visible> <true /> </visible>
  244.         <dontWrap> <false /> </dontWrap>
  245.         <dontSearch> <false /> </dontSearch>
  246.         <sharedText> <false /> </sharedText>
  247.         <fixedLineHeight> <true /> </fixedLineHeight>
  248.         <autoTab> <false /> </autoTab>
  249.         <lockText> <true /> </lockText>
  250.         <rect>
  251.             <left>20</left>
  252.             <top>185</top>
  253.             <right>116</right>
  254.             <bottom>197</bottom>
  255.         </rect>
  256.         <style>opaque</style>
  257.         <autoSelect> <false /> </autoSelect>
  258.         <showLines> <false /> </showLines>
  259.         <wideMargins> <false /> </wideMargins>
  260.         <multipleLines> <false /> </multipleLines>
  261.         <reservedFamily> 0 </reservedFamily>
  262.         <titleWidth>0</titleWidth>
  263.         <icon>0</icon>
  264.         <textAlign>left</textAlign>
  265.         <font>Geneva</font>
  266.         <textSize>9</textSize>
  267.         <textStyle>bold</textStyle>
  268.         <textHeight>9</textHeight>
  269.         <name>Label</name>
  270.         <script>‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Label field using Label Field Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  271.  
  272. on mouseDown
  273. LabelFieldClick
  274. pass mouseDown
  275. end mouseDown
  276.  
  277. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Truncating & Style-Fixing field using Valid Entry Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  278.  
  279. on closeField
  280. KeepOnlyVisibleLines
  281. UseTextStyleOfField
  282. pass closeField
  283. end closeField</script>
  284.     </part>
  285.     <part>
  286.         <id>41</id>
  287.         <type>field</type>
  288.         <visible> <true /> </visible>
  289.         <dontWrap> <false /> </dontWrap>
  290.         <dontSearch> <false /> </dontSearch>
  291.         <sharedText> <false /> </sharedText>
  292.         <fixedLineHeight> <true /> </fixedLineHeight>
  293.         <autoTab> <false /> </autoTab>
  294.         <lockText> <true /> </lockText>
  295.         <rect>
  296.             <left>20</left>
  297.             <top>200</top>
  298.             <right>116</right>
  299.             <bottom>212</bottom>
  300.         </rect>
  301.         <style>opaque</style>
  302.         <autoSelect> <false /> </autoSelect>
  303.         <showLines> <false /> </showLines>
  304.         <wideMargins> <false /> </wideMargins>
  305.         <multipleLines> <false /> </multipleLines>
  306.         <reservedFamily> 0 </reservedFamily>
  307.         <titleWidth>0</titleWidth>
  308.         <icon>0</icon>
  309.         <textAlign>left</textAlign>
  310.         <font>Geneva</font>
  311.         <textSize>9</textSize>
  312.         <textStyle>bold</textStyle>
  313.         <textHeight>9</textHeight>
  314.         <name>Label</name>
  315.         <script>‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Label field using Label Field Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  316.  
  317. on mouseDown
  318. LabelFieldClick
  319. pass mouseDown
  320. end mouseDown
  321.  
  322. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Truncating & Style-Fixing field using Valid Entry Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  323.  
  324. on closeField
  325. KeepOnlyVisibleLines
  326. UseTextStyleOfField
  327. pass closeField
  328. end closeField</script>
  329.     </part>
  330.     <part>
  331.         <id>30</id>
  332.         <type>field</type>
  333.         <visible> <true /> </visible>
  334.         <dontWrap> <false /> </dontWrap>
  335.         <dontSearch> <false /> </dontSearch>
  336.         <sharedText> <false /> </sharedText>
  337.         <fixedLineHeight> <true /> </fixedLineHeight>
  338.         <autoTab> <false /> </autoTab>
  339.         <lockText> <true /> </lockText>
  340.         <rect>
  341.             <left>20</left>
  342.             <top>216</top>
  343.             <right>116</right>
  344.             <bottom>228</bottom>
  345.         </rect>
  346.         <style>opaque</style>
  347.         <autoSelect> <false /> </autoSelect>
  348.         <showLines> <false /> </showLines>
  349.         <wideMargins> <false /> </wideMargins>
  350.         <multipleLines> <false /> </multipleLines>
  351.         <reservedFamily> 0 </reservedFamily>
  352.         <titleWidth>0</titleWidth>
  353.         <icon>0</icon>
  354.         <textAlign>left</textAlign>
  355.         <font>Geneva</font>
  356.         <textSize>9</textSize>
  357.         <textStyle>bold</textStyle>
  358.         <textHeight>9</textHeight>
  359.         <name>Label</name>
  360.         <script>‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Label field using Label Field Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  361.  
  362. on mouseDown
  363. LabelFieldClick
  364. pass mouseDown
  365. end mouseDown
  366.  
  367. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Truncating & Style-Fixing field using Valid Entry Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  368.  
  369. on closeField
  370. KeepOnlyVisibleLines
  371. UseTextStyleOfField
  372. pass closeField
  373. end closeField</script>
  374.     </part>
  375.     <part>
  376.         <id>61</id>
  377.         <type>field</type>
  378.         <visible> <true /> </visible>
  379.         <dontWrap> <false /> </dontWrap>
  380.         <dontSearch> <false /> </dontSearch>
  381.         <sharedText> <false /> </sharedText>
  382.         <fixedLineHeight> <true /> </fixedLineHeight>
  383.         <autoTab> <false /> </autoTab>
  384.         <lockText> <true /> </lockText>
  385.         <rect>
  386.             <left>20</left>
  387.             <top>232</top>
  388.             <right>116</right>
  389.             <bottom>244</bottom>
  390.         </rect>
  391.         <style>opaque</style>
  392.         <autoSelect> <false /> </autoSelect>
  393.         <showLines> <false /> </showLines>
  394.         <wideMargins> <false /> </wideMargins>
  395.         <multipleLines> <false /> </multipleLines>
  396.         <reservedFamily> 0 </reservedFamily>
  397.         <titleWidth>0</titleWidth>
  398.         <icon>0</icon>
  399.         <textAlign>left</textAlign>
  400.         <font>Geneva</font>
  401.         <textSize>9</textSize>
  402.         <textStyle>bold</textStyle>
  403.         <textHeight>9</textHeight>
  404.         <name>Label</name>
  405.         <script>‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Label field using Label Field Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  406.  
  407. on mouseDown
  408. LabelFieldClick
  409. pass mouseDown
  410. end mouseDown
  411.  
  412. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Truncating & Style-Fixing field using Valid Entry Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  413.  
  414. on closeField
  415. KeepOnlyVisibleLines
  416. UseTextStyleOfField
  417. pass closeField
  418. end closeField</script>
  419.     </part>
  420.     <part>
  421.         <id>63</id>
  422.         <type>field</type>
  423.         <visible> <true /> </visible>
  424.         <dontWrap> <false /> </dontWrap>
  425.         <dontSearch> <false /> </dontSearch>
  426.         <sharedText> <false /> </sharedText>
  427.         <fixedLineHeight> <true /> </fixedLineHeight>
  428.         <autoTab> <false /> </autoTab>
  429.         <lockText> <true /> </lockText>
  430.         <rect>
  431.             <left>20</left>
  432.             <top>248</top>
  433.             <right>116</right>
  434.             <bottom>260</bottom>
  435.         </rect>
  436.         <style>opaque</style>
  437.         <autoSelect> <false /> </autoSelect>
  438.         <showLines> <false /> </showLines>
  439.         <wideMargins> <false /> </wideMargins>
  440.         <multipleLines> <false /> </multipleLines>
  441.         <reservedFamily> 0 </reservedFamily>
  442.         <titleWidth>0</titleWidth>
  443.         <icon>0</icon>
  444.         <textAlign>left</textAlign>
  445.         <font>Geneva</font>
  446.         <textSize>9</textSize>
  447.         <textStyle>bold</textStyle>
  448.         <textHeight>9</textHeight>
  449.         <name>Label</name>
  450.         <script>‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Label field using Label Field Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  451.  
  452. on mouseDown
  453. LabelFieldClick
  454. pass mouseDown
  455. end mouseDown
  456.  
  457. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Truncating & Style-Fixing field using Valid Entry Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  458.  
  459. on closeField
  460. KeepOnlyVisibleLines
  461. UseTextStyleOfField
  462. pass closeField
  463. end closeField</script>
  464.     </part>
  465.     <part>
  466.         <id>65</id>
  467.         <type>field</type>
  468.         <visible> <true /> </visible>
  469.         <dontWrap> <false /> </dontWrap>
  470.         <dontSearch> <false /> </dontSearch>
  471.         <sharedText> <false /> </sharedText>
  472.         <fixedLineHeight> <true /> </fixedLineHeight>
  473.         <autoTab> <false /> </autoTab>
  474.         <lockText> <true /> </lockText>
  475.         <rect>
  476.             <left>20</left>
  477.             <top>264</top>
  478.             <right>116</right>
  479.             <bottom>276</bottom>
  480.         </rect>
  481.         <style>opaque</style>
  482.         <autoSelect> <false /> </autoSelect>
  483.         <showLines> <false /> </showLines>
  484.         <wideMargins> <false /> </wideMargins>
  485.         <multipleLines> <false /> </multipleLines>
  486.         <reservedFamily> 0 </reservedFamily>
  487.         <titleWidth>0</titleWidth>
  488.         <icon>0</icon>
  489.         <textAlign>left</textAlign>
  490.         <font>Geneva</font>
  491.         <textSize>9</textSize>
  492.         <textStyle>bold</textStyle>
  493.         <textHeight>9</textHeight>
  494.         <name>Label</name>
  495.         <script>‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Label field using Label Field Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  496.  
  497. on mouseDown
  498. LabelFieldClick
  499. pass mouseDown
  500. end mouseDown
  501.  
  502. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Truncating & Style-Fixing field using Valid Entry Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  503.  
  504. on closeField
  505. KeepOnlyVisibleLines
  506. UseTextStyleOfField
  507. pass closeField
  508. end closeField</script>
  509.     </part>
  510.     <part>
  511.         <id>19</id>
  512.         <type>field</type>
  513.         <visible> <true /> </visible>
  514.         <dontWrap> <false /> </dontWrap>
  515.         <dontSearch> <false /> </dontSearch>
  516.         <sharedText> <false /> </sharedText>
  517.         <fixedLineHeight> <true /> </fixedLineHeight>
  518.         <autoTab> <false /> </autoTab>
  519.         <lockText> <true /> </lockText>
  520.         <rect>
  521.             <left>140</left>
  522.             <top>305</top>
  523.             <right>206</right>
  524.             <bottom>318</bottom>
  525.         </rect>
  526.         <style>opaque</style>
  527.         <autoSelect> <false /> </autoSelect>
  528.         <showLines> <false /> </showLines>
  529.         <wideMargins> <false /> </wideMargins>
  530.         <multipleLines> <false /> </multipleLines>
  531.         <reservedFamily> 0 </reservedFamily>
  532.         <titleWidth>0</titleWidth>
  533.         <icon>0</icon>
  534.         <textAlign>left</textAlign>
  535.         <font>Geneva</font>
  536.         <textSize>9</textSize>
  537.         <textStyle>bold</textStyle>
  538.         <textHeight>9</textHeight>
  539.         <name>Label</name>
  540.         <script>‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Label field using Label Field Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  541.  
  542. on mouseDown
  543. LabelFieldClick
  544. pass mouseDown
  545. end mouseDown
  546.  
  547. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Truncating & Style-Fixing field using Valid Entry Package ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  548.  
  549. on closeField
  550. KeepOnlyVisibleLines
  551. UseTextStyleOfField
  552. pass closeField
  553. end closeField</script>
  554.     </part>
  555.     <part>
  556.         <id>44</id>
  557.         <type>field</type>
  558.         <visible> <true /> </visible>
  559.         <dontWrap> <false /> </dontWrap>
  560.         <dontSearch> <false /> </dontSearch>
  561.         <sharedText> <false /> </sharedText>
  562.         <fixedLineHeight> <true /> </fixedLineHeight>
  563.         <autoTab> <false /> </autoTab>
  564.         <lockText> <false /> </lockText>
  565.         <rect>
  566.             <left>118</left>
  567.             <top>168</top>
  568.             <right>342</right>
  569.             <bottom>181</bottom>
  570.         </rect>
  571.         <style>rectangle</style>
  572.         <autoSelect> <false /> </autoSelect>
  573.         <showLines> <false /> </showLines>
  574.         <wideMargins> <false /> </wideMargins>
  575.         <multipleLines> <false /> </multipleLines>
  576.         <reservedFamily> 0 </reservedFamily>
  577.         <titleWidth>0</titleWidth>
  578.         <icon>0</icon>
  579.         <textAlign>left</textAlign>
  580.         <font>Geneva</font>
  581.         <textSize>9</textSize>
  582.         <textStyle>plain</textStyle>
  583.         <textHeight>9</textHeight>
  584.         <name>Window Name</name>
  585.         <script></script>
  586.     </part>
  587.     <part>
  588.         <id>28</id>
  589.         <type>field</type>
  590.         <visible> <true /> </visible>
  591.         <dontWrap> <false /> </dontWrap>
  592.         <dontSearch> <false /> </dontSearch>
  593.         <sharedText> <false /> </sharedText>
  594.         <fixedLineHeight> <true /> </fixedLineHeight>
  595.         <autoTab> <false /> </autoTab>
  596.         <lockText> <false /> </lockText>
  597.         <rect>
  598.             <left>118</left>
  599.             <top>184</top>
  600.             <right>342</right>
  601.             <bottom>197</bottom>
  602.         </rect>
  603.         <style>rectangle</style>
  604.         <autoSelect> <false /> </autoSelect>
  605.         <showLines> <false /> </showLines>
  606.         <wideMargins> <false /> </wideMargins>
  607.         <multipleLines> <false /> </multipleLines>
  608.         <reservedFamily> 0 </reservedFamily>
  609.         <titleWidth>0</titleWidth>
  610.         <icon>0</icon>
  611.         <textAlign>left</textAlign>
  612.         <font>Geneva</font>
  613.         <textSize>9</textSize>
  614.         <textStyle>plain</textStyle>
  615.         <textHeight>9</textHeight>
  616.         <name>Loc</name>
  617.         <script></script>
  618.     </part>
  619.     <part>
  620.         <id>40</id>
  621.         <type>field</type>
  622.         <visible> <true /> </visible>
  623.         <dontWrap> <false /> </dontWrap>
  624.         <dontSearch> <false /> </dontSearch>
  625.         <sharedText> <false /> </sharedText>
  626.         <fixedLineHeight> <true /> </fixedLineHeight>
  627.         <autoTab> <false /> </autoTab>
  628.         <lockText> <false /> </lockText>
  629.         <rect>
  630.             <left>118</left>
  631.             <top>200</top>
  632.             <right>342</right>
  633.             <bottom>213</bottom>
  634.         </rect>
  635.         <style>rectangle</style>
  636.         <autoSelect> <false /> </autoSelect>
  637.         <showLines> <false /> </showLines>
  638.         <wideMargins> <false /> </wideMargins>
  639.         <multipleLines> <false /> </multipleLines>
  640.         <reservedFamily> 0 </reservedFamily>
  641.         <titleWidth>0</titleWidth>
  642.         <icon>0</icon>
  643.         <textAlign>left</textAlign>
  644.         <font>Geneva</font>
  645.         <textSize>9</textSize>
  646.         <textStyle>plain</textStyle>
  647.         <textHeight>9</textHeight>
  648.         <name>Text</name>
  649.         <script></script>
  650.     </part>
  651.     <part>
  652.         <id>29</id>
  653.         <type>field</type>
  654.         <visible> <true /> </visible>
  655.         <dontWrap> <false /> </dontWrap>
  656.         <dontSearch> <false /> </dontSearch>
  657.         <sharedText> <false /> </sharedText>
  658.         <fixedLineHeight> <true /> </fixedLineHeight>
  659.         <autoTab> <false /> </autoTab>
  660.         <lockText> <false /> </lockText>
  661.         <rect>
  662.             <left>118</left>
  663.             <top>216</top>
  664.             <right>342</right>
  665.             <bottom>229</bottom>
  666.         </rect>
  667.         <style>rectangle</style>
  668.         <autoSelect> <false /> </autoSelect>
  669.         <showLines> <false /> </showLines>
  670.         <wideMargins> <false /> </wideMargins>
  671.         <multipleLines> <false /> </multipleLines>
  672.         <reservedFamily> 0 </reservedFamily>
  673.         <titleWidth>0</titleWidth>
  674.         <icon>0</icon>
  675.         <textAlign>left</textAlign>
  676.         <font>Geneva</font>
  677.         <textSize>9</textSize>
  678.         <textStyle>plain</textStyle>
  679.         <textHeight>9</textHeight>
  680.         <name>Fraction</name>
  681.         <script></script>
  682.     </part>
  683.     <part>
  684.         <id>43</id>
  685.         <type>button</type>
  686.         <visible> <true /> </visible>
  687.         <reserved5> 0 </reserved5>
  688.         <reserved4> 0 </reserved4>
  689.         <reserved3> 0 </reserved3>
  690.         <reserved2> 0 </reserved2>
  691.         <reserved1> 0 </reserved1>
  692.         <enabled> <true /> </enabled>
  693.         <rect>
  694.             <left>15</left>
  695.             <top>299</top>
  696.             <right>134</right>
  697.             <bottom>321</bottom>
  698.         </rect>
  699.         <style>roundrect</style>
  700.         <showName> <true /> </showName>
  701.         <highlight> <false /> </highlight>
  702.         <autoHighlight> <false /> </autoHighlight>
  703.         <sharedHighlight> <true /> </sharedHighlight>
  704.         <family>0</family>
  705.         <titleWidth>0</titleWidth>
  706.         <icon>0</icon>
  707.         <textAlign>center</textAlign>
  708.         <font>Chicago</font>
  709.         <textSize>12</textSize>
  710.         <textStyle>plain</textStyle>
  711.         <name>Simple Loop Test</name>
  712.         <script>on mouseDown
  713. TestProgressWindoidLoop
  714. end mouseDown
  715. </script>
  716.     </part>
  717.     <part>
  718.         <id>46</id>
  719.         <type>button</type>
  720.         <visible> <true /> </visible>
  721.         <reserved5> 0 </reserved5>
  722.         <reserved4> 0 </reserved4>
  723.         <reserved3> 0 </reserved3>
  724.         <reserved2> 0 </reserved2>
  725.         <reserved1> 0 </reserved1>
  726.         <enabled> <true /> </enabled>
  727.         <rect>
  728.             <left>295</left>
  729.             <top>298</top>
  730.             <right>415</right>
  731.             <bottom>320</bottom>
  732.         </rect>
  733.         <style>roundrect</style>
  734.         <showName> <true /> </showName>
  735.         <highlight> <false /> </highlight>
  736.         <autoHighlight> <false /> </autoHighlight>
  737.         <sharedHighlight> <true /> </sharedHighlight>
  738.         <family>0</family>
  739.         <titleWidth>0</titleWidth>
  740.         <icon>0</icon>
  741.         <textAlign>center</textAlign>
  742.         <font>Chicago</font>
  743.         <textSize>12</textSize>
  744.         <textStyle>plain</textStyle>
  745.         <name>Mouse Track Test</name>
  746.         <script>on mouseDown
  747. TestProgressWindoidMouse
  748. end mouseDown
  749. </script>
  750.     </part>
  751.     <part>
  752.         <id>53</id>
  753.         <type>button</type>
  754.         <visible> <true /> </visible>
  755.         <reserved5> 0 </reserved5>
  756.         <reserved4> 0 </reserved4>
  757.         <reserved3> 0 </reserved3>
  758.         <reserved2> 0 </reserved2>
  759.         <reserved1> 0 </reserved1>
  760.         <enabled> <true /> </enabled>
  761.         <rect>
  762.             <left>278</left>
  763.             <top>140</top>
  764.             <right>336</right>
  765.             <bottom>162</bottom>
  766.         </rect>
  767.         <style>roundrect</style>
  768.         <showName> <true /> </showName>
  769.         <highlight> <false /> </highlight>
  770.         <autoHighlight> <false /> </autoHighlight>
  771.         <sharedHighlight> <true /> </sharedHighlight>
  772.         <family>0</family>
  773.         <titleWidth>0</titleWidth>
  774.         <icon>0</icon>
  775.         <textAlign>center</textAlign>
  776.         <font>Chicago</font>
  777.         <textSize>12</textSize>
  778.         <textStyle>plain</textStyle>
  779.         <name>Show</name>
  780.         <script>on mouseUp
  781. ShowProgressWindoid
  782. end mouseUp
  783. </script>
  784.     </part>
  785.     <part>
  786.         <id>54</id>
  787.         <type>button</type>
  788.         <visible> <true /> </visible>
  789.         <reserved5> 0 </reserved5>
  790.         <reserved4> 0 </reserved4>
  791.         <reserved3> 0 </reserved3>
  792.         <reserved2> 0 </reserved2>
  793.         <reserved1> 0 </reserved1>
  794.         <enabled> <true /> </enabled>
  795.         <rect>
  796.             <left>198</left>
  797.             <top>140</top>
  798.             <right>256</right>
  799.             <bottom>162</bottom>
  800.         </rect>
  801.         <style>roundrect</style>
  802.         <showName> <true /> </showName>
  803.         <highlight> <false /> </highlight>
  804.         <autoHighlight> <false /> </autoHighlight>
  805.         <sharedHighlight> <true /> </sharedHighlight>
  806.         <family>0</family>
  807.         <titleWidth>0</titleWidth>
  808.         <icon>0</icon>
  809.         <textAlign>center</textAlign>
  810.         <font>Chicago</font>
  811.         <textSize>12</textSize>
  812.         <textStyle>plain</textStyle>
  813.         <name>Hide</name>
  814.         <script>on mouseUp
  815. HideProgressWindoid
  816. end mouseUp
  817. </script>
  818.     </part>
  819.     <part>
  820.         <id>24</id>
  821.         <type>button</type>
  822.         <visible> <true /> </visible>
  823.         <reserved5> 0 </reserved5>
  824.         <reserved4> 0 </reserved4>
  825.         <reserved3> 0 </reserved3>
  826.         <reserved2> 0 </reserved2>
  827.         <reserved1> 0 </reserved1>
  828.         <enabled> <true /> </enabled>
  829.         <rect>
  830.             <left>118</left>
  831.             <top>140</top>
  832.             <right>176</right>
  833.             <bottom>162</bottom>
  834.         </rect>
  835.         <style>roundrect</style>
  836.         <showName> <true /> </showName>
  837.         <highlight> <false /> </highlight>
  838.         <autoHighlight> <false /> </autoHighlight>
  839.         <sharedHighlight> <true /> </sharedHighlight>
  840.         <family>0</family>
  841.         <titleWidth>0</titleWidth>
  842.         <icon>0</icon>
  843.         <textAlign>center</textAlign>
  844.         <font>Chicago</font>
  845.         <textSize>12</textSize>
  846.         <textStyle>plain</textStyle>
  847.         <name>Create</name>
  848.         <script>on mouseUp
  849. CreateProgressWindoid
  850. end mouseUp
  851. </script>
  852.     </part>
  853.     <part>
  854.         <id>55</id>
  855.         <type>button</type>
  856.         <visible> <true /> </visible>
  857.         <reserved5> 0 </reserved5>
  858.         <reserved4> 0 </reserved4>
  859.         <reserved3> 0 </reserved3>
  860.         <reserved2> 0 </reserved2>
  861.         <reserved1> 0 </reserved1>
  862.         <enabled> <true /> </enabled>
  863.         <rect>
  864.             <left>344</left>
  865.             <top>184</top>
  866.             <right>385</right>
  867.             <bottom>199</bottom>
  868.         </rect>
  869.         <style>shadow</style>
  870.         <showName> <true /> </showName>
  871.         <highlight> <false /> </highlight>
  872.         <autoHighlight> <false /> </autoHighlight>
  873.         <sharedHighlight> <true /> </sharedHighlight>
  874.         <family>0</family>
  875.         <titleWidth>0</titleWidth>
  876.         <icon>0</icon>
  877.         <textAlign>center</textAlign>
  878.         <font>Chicago</font>
  879.         <textSize>12</textSize>
  880.         <textStyle>plain</textStyle>
  881.         <name>Get</name>
  882.         <script>on mouseUp
  883. GetProgWindowLoc
  884. end mouseUp
  885. </script>
  886.     </part>
  887.     <part>
  888.         <id>62</id>
  889.         <type>field</type>
  890.         <visible> <true /> </visible>
  891.         <dontWrap> <false /> </dontWrap>
  892.         <dontSearch> <false /> </dontSearch>
  893.         <sharedText> <false /> </sharedText>
  894.         <fixedLineHeight> <true /> </fixedLineHeight>
  895.         <autoTab> <false /> </autoTab>
  896.         <lockText> <false /> </lockText>
  897.         <rect>
  898.             <left>118</left>
  899.             <top>232</top>
  900.             <right>342</right>
  901.             <bottom>245</bottom>
  902.         </rect>
  903.         <style>rectangle</style>
  904.         <autoSelect> <false /> </autoSelect>
  905.         <showLines> <false /> </showLines>
  906.         <wideMargins> <false /> </wideMargins>
  907.         <multipleLines> <false /> </multipleLines>
  908.         <reservedFamily> 0 </reservedFamily>
  909.         <titleWidth>0</titleWidth>
  910.         <icon>0</icon>
  911.         <textAlign>left</textAlign>
  912.         <font>Geneva</font>
  913.         <textSize>9</textSize>
  914.         <textStyle>plain</textStyle>
  915.         <textHeight>9</textHeight>
  916.         <name>Width</name>
  917.         <script></script>
  918.     </part>
  919.     <part>
  920.         <id>64</id>
  921.         <type>field</type>
  922.         <visible> <true /> </visible>
  923.         <dontWrap> <false /> </dontWrap>
  924.         <dontSearch> <false /> </dontSearch>
  925.         <sharedText> <false /> </sharedText>
  926.         <fixedLineHeight> <true /> </fixedLineHeight>
  927.         <autoTab> <false /> </autoTab>
  928.         <lockText> <false /> </lockText>
  929.         <rect>
  930.             <left>118</left>
  931.             <top>248</top>
  932.             <right>342</right>
  933.             <bottom>261</bottom>
  934.         </rect>
  935.         <style>rectangle</style>
  936.         <autoSelect> <false /> </autoSelect>
  937.         <showLines> <false /> </showLines>
  938.         <wideMargins> <false /> </wideMargins>
  939.         <multipleLines> <false /> </multipleLines>
  940.         <reservedFamily> 0 </reservedFamily>
  941.         <titleWidth>0</titleWidth>
  942.         <icon>0</icon>
  943.         <textAlign>left</textAlign>
  944.         <font>Geneva</font>
  945.         <textSize>9</textSize>
  946.         <textStyle>plain</textStyle>
  947.         <textHeight>9</textHeight>
  948.         <name>TextFont</name>
  949.         <script></script>
  950.     </part>
  951.     <part>
  952.         <id>60</id>
  953.         <type>button</type>
  954.         <visible> <true /> </visible>
  955.         <reserved5> 0 </reserved5>
  956.         <reserved4> 0 </reserved4>
  957.         <reserved3> 0 </reserved3>
  958.         <reserved2> 0 </reserved2>
  959.         <reserved1> 0 </reserved1>
  960.         <enabled> <true /> </enabled>
  961.         <rect>
  962.             <left>358</left>
  963.             <top>140</top>
  964.             <right>416</right>
  965.             <bottom>162</bottom>
  966.         </rect>
  967.         <style>roundrect</style>
  968.         <showName> <true /> </showName>
  969.         <highlight> <false /> </highlight>
  970.         <autoHighlight> <false /> </autoHighlight>
  971.         <sharedHighlight> <true /> </sharedHighlight>
  972.         <family>0</family>
  973.         <titleWidth>0</titleWidth>
  974.         <icon>0</icon>
  975.         <textAlign>center</textAlign>
  976.         <font>Chicago</font>
  977.         <textSize>12</textSize>
  978.         <textStyle>plain</textStyle>
  979.         <name>Close</name>
  980.         <script>on mouseUp
  981. CloseProgressWindoid
  982. end mouseUp
  983. </script>
  984.     </part>
  985.     <part>
  986.         <id>70</id>
  987.         <type>button</type>
  988.         <visible> <true /> </visible>
  989.         <reserved5> 0 </reserved5>
  990.         <reserved4> 0 </reserved4>
  991.         <reserved3> 0 </reserved3>
  992.         <reserved2> 0 </reserved2>
  993.         <reserved1> 0 </reserved1>
  994.         <enabled> <true /> </enabled>
  995.         <rect>
  996.             <left>387</left>
  997.             <top>184</top>
  998.             <right>428</right>
  999.             <bottom>199</bottom>
  1000.         </rect>
  1001.         <style>shadow</style>
  1002.         <showName> <true /> </showName>
  1003.         <highlight> <false /> </highlight>
  1004.         <autoHighlight> <false /> </autoHighlight>
  1005.         <sharedHighlight> <true /> </sharedHighlight>
  1006.         <family>0</family>
  1007.         <titleWidth>0</titleWidth>
  1008.         <icon>0</icon>
  1009.         <textAlign>center</textAlign>
  1010.         <font>Chicago</font>
  1011.         <textSize>12</textSize>
  1012.         <textStyle>plain</textStyle>
  1013.         <name>Set</name>
  1014.         <script>on mouseUp
  1015. SetProgWindowLoc
  1016. end mouseUp
  1017. </script>
  1018.     </part>
  1019.     <part>
  1020.         <id>71</id>
  1021.         <type>button</type>
  1022.         <visible> <true /> </visible>
  1023.         <reserved5> 0 </reserved5>
  1024.         <reserved4> 0 </reserved4>
  1025.         <reserved3> 0 </reserved3>
  1026.         <reserved2> 0 </reserved2>
  1027.         <reserved1> 0 </reserved1>
  1028.         <enabled> <true /> </enabled>
  1029.         <rect>
  1030.             <left>344</left>
  1031.             <top>200</top>
  1032.             <right>385</right>
  1033.             <bottom>215</bottom>
  1034.         </rect>
  1035.         <style>shadow</style>
  1036.         <showName> <true /> </showName>
  1037.         <highlight> <false /> </highlight>
  1038.         <autoHighlight> <false /> </autoHighlight>
  1039.         <sharedHighlight> <true /> </sharedHighlight>
  1040.         <family>0</family>
  1041.         <titleWidth>0</titleWidth>
  1042.         <icon>0</icon>
  1043.         <textAlign>center</textAlign>
  1044.         <font>Chicago</font>
  1045.         <textSize>12</textSize>
  1046.         <textStyle>plain</textStyle>
  1047.         <name>Get</name>
  1048.         <script>on mouseUp
  1049. GetProgWindowText
  1050. end mouseUp
  1051. </script>
  1052.     </part>
  1053.     <part>
  1054.         <id>72</id>
  1055.         <type>button</type>
  1056.         <visible> <true /> </visible>
  1057.         <reserved5> 0 </reserved5>
  1058.         <reserved4> 0 </reserved4>
  1059.         <reserved3> 0 </reserved3>
  1060.         <reserved2> 0 </reserved2>
  1061.         <reserved1> 0 </reserved1>
  1062.         <enabled> <true /> </enabled>
  1063.         <rect>
  1064.             <left>344</left>
  1065.             <top>216</top>
  1066.             <right>385</right>
  1067.             <bottom>231</bottom>
  1068.         </rect>
  1069.         <style>shadow</style>
  1070.         <showName> <true /> </showName>
  1071.         <highlight> <false /> </highlight>
  1072.         <autoHighlight> <false /> </autoHighlight>
  1073.         <sharedHighlight> <true /> </sharedHighlight>
  1074.         <family>0</family>
  1075.         <titleWidth>0</titleWidth>
  1076.         <icon>0</icon>
  1077.         <textAlign>center</textAlign>
  1078.         <font>Chicago</font>
  1079.         <textSize>12</textSize>
  1080.         <textStyle>plain</textStyle>
  1081.         <name>Get</name>
  1082.         <script>on mouseUp
  1083. GetProgWindowFraction
  1084. end mouseUp
  1085. </script>
  1086.     </part>
  1087.     <part>
  1088.         <id>73</id>
  1089.         <type>button</type>
  1090.         <visible> <true /> </visible>
  1091.         <reserved5> 0 </reserved5>
  1092.         <reserved4> 0 </reserved4>
  1093.         <reserved3> 0 </reserved3>
  1094.         <reserved2> 0 </reserved2>
  1095.         <reserved1> 0 </reserved1>
  1096.         <enabled> <true /> </enabled>
  1097.         <rect>
  1098.             <left>344</left>
  1099.             <top>232</top>
  1100.             <right>385</right>
  1101.             <bottom>247</bottom>
  1102.         </rect>
  1103.         <style>shadow</style>
  1104.         <showName> <true /> </showName>
  1105.         <highlight> <false /> </highlight>
  1106.         <autoHighlight> <false /> </autoHighlight>
  1107.         <sharedHighlight> <true /> </sharedHighlight>
  1108.         <family>0</family>
  1109.         <titleWidth>0</titleWidth>
  1110.         <icon>0</icon>
  1111.         <textAlign>center</textAlign>
  1112.         <font>Chicago</font>
  1113.         <textSize>12</textSize>
  1114.         <textStyle>plain</textStyle>
  1115.         <name>Get</name>
  1116.         <script>on mouseUp
  1117. GetProgWindowWidth
  1118. end mouseUp
  1119. </script>
  1120.     </part>
  1121.     <part>
  1122.         <id>74</id>
  1123.         <type>button</type>
  1124.         <visible> <true /> </visible>
  1125.         <reserved5> 0 </reserved5>
  1126.         <reserved4> 0 </reserved4>
  1127.         <reserved3> 0 </reserved3>
  1128.         <reserved2> 0 </reserved2>
  1129.         <reserved1> 0 </reserved1>
  1130.         <enabled> <true /> </enabled>
  1131.         <rect>
  1132.             <left>344</left>
  1133.             <top>248</top>
  1134.             <right>385</right>
  1135.             <bottom>263</bottom>
  1136.         </rect>
  1137.         <style>shadow</style>
  1138.         <showName> <true /> </showName>
  1139.         <highlight> <false /> </highlight>
  1140.         <autoHighlight> <false /> </autoHighlight>
  1141.         <sharedHighlight> <true /> </sharedHighlight>
  1142.         <family>0</family>
  1143.         <titleWidth>0</titleWidth>
  1144.         <icon>0</icon>
  1145.         <textAlign>center</textAlign>
  1146.         <font>Chicago</font>
  1147.         <textSize>12</textSize>
  1148.         <textStyle>plain</textStyle>
  1149.         <name>Get</name>
  1150.         <script>on mouseUp
  1151. GetProgWindowTextFont
  1152. end mouseUp
  1153. </script>
  1154.     </part>
  1155.     <part>
  1156.         <id>75</id>
  1157.         <type>button</type>
  1158.         <visible> <true /> </visible>
  1159.         <reserved5> 0 </reserved5>
  1160.         <reserved4> 0 </reserved4>
  1161.         <reserved3> 0 </reserved3>
  1162.         <reserved2> 0 </reserved2>
  1163.         <reserved1> 0 </reserved1>
  1164.         <enabled> <true /> </enabled>
  1165.         <rect>
  1166.             <left>344</left>
  1167.             <top>264</top>
  1168.             <right>385</right>
  1169.             <bottom>279</bottom>
  1170.         </rect>
  1171.         <style>shadow</style>
  1172.         <showName> <true /> </showName>
  1173.         <highlight> <false /> </highlight>
  1174.         <autoHighlight> <false /> </autoHighlight>
  1175.         <sharedHighlight> <true /> </sharedHighlight>
  1176.         <family>0</family>
  1177.         <titleWidth>0</titleWidth>
  1178.         <icon>0</icon>
  1179.         <textAlign>center</textAlign>
  1180.         <font>Chicago</font>
  1181.         <textSize>12</textSize>
  1182.         <textStyle>plain</textStyle>
  1183.         <name>Get</name>
  1184.         <script>on mouseUp
  1185. GetProgWindowTextSize
  1186. end mouseUp
  1187. </script>
  1188.     </part>
  1189.     <part>
  1190.         <id>81</id>
  1191.         <type>button</type>
  1192.         <visible> <true /> </visible>
  1193.         <reserved5> 0 </reserved5>
  1194.         <reserved4> 0 </reserved4>
  1195.         <reserved3> 0 </reserved3>
  1196.         <reserved2> 0 </reserved2>
  1197.         <reserved1> 0 </reserved1>
  1198.         <enabled> <true /> </enabled>
  1199.         <rect>
  1200.             <left>387</left>
  1201.             <top>200</top>
  1202.             <right>428</right>
  1203.             <bottom>215</bottom>
  1204.         </rect>
  1205.         <style>shadow</style>
  1206.         <showName> <true /> </showName>
  1207.         <highlight> <false /> </highlight>
  1208.         <autoHighlight> <false /> </autoHighlight>
  1209.         <sharedHighlight> <true /> </sharedHighlight>
  1210.         <family>0</family>
  1211.         <titleWidth>0</titleWidth>
  1212.         <icon>0</icon>
  1213.         <textAlign>center</textAlign>
  1214.         <font>Chicago</font>
  1215.         <textSize>12</textSize>
  1216.         <textStyle>plain</textStyle>
  1217.         <name>Set</name>
  1218.         <script>on mouseUp
  1219. SetProgWindowText
  1220. end mouseUp
  1221. </script>
  1222.     </part>
  1223.     <part>
  1224.         <id>82</id>
  1225.         <type>button</type>
  1226.         <visible> <true /> </visible>
  1227.         <reserved5> 0 </reserved5>
  1228.         <reserved4> 0 </reserved4>
  1229.         <reserved3> 0 </reserved3>
  1230.         <reserved2> 0 </reserved2>
  1231.         <reserved1> 0 </reserved1>
  1232.         <enabled> <true /> </enabled>
  1233.         <rect>
  1234.             <left>387</left>
  1235.             <top>216</top>
  1236.             <right>428</right>
  1237.             <bottom>231</bottom>
  1238.         </rect>
  1239.         <style>shadow</style>
  1240.         <showName> <true /> </showName>
  1241.         <highlight> <false /> </highlight>
  1242.         <autoHighlight> <false /> </autoHighlight>
  1243.         <sharedHighlight> <true /> </sharedHighlight>
  1244.         <family>0</family>
  1245.         <titleWidth>0</titleWidth>
  1246.         <icon>0</icon>
  1247.         <textAlign>center</textAlign>
  1248.         <font>Chicago</font>
  1249.         <textSize>12</textSize>
  1250.         <textStyle>plain</textStyle>
  1251.         <name>Set</name>
  1252.         <script>on mouseUp
  1253. SetProgWindowFraction
  1254. end mouseUp
  1255. </script>
  1256.     </part>
  1257.     <part>
  1258.         <id>83</id>
  1259.         <type>button</type>
  1260.         <visible> <true /> </visible>
  1261.         <reserved5> 0 </reserved5>
  1262.         <reserved4> 0 </reserved4>
  1263.         <reserved3> 0 </reserved3>
  1264.         <reserved2> 0 </reserved2>
  1265.         <reserved1> 0 </reserved1>
  1266.         <enabled> <true /> </enabled>
  1267.         <rect>
  1268.             <left>387</left>
  1269.             <top>232</top>
  1270.             <right>428</right>
  1271.             <bottom>247</bottom>
  1272.         </rect>
  1273.         <style>shadow</style>
  1274.         <showName> <true /> </showName>
  1275.         <highlight> <false /> </highlight>
  1276.         <autoHighlight> <false /> </autoHighlight>
  1277.         <sharedHighlight> <true /> </sharedHighlight>
  1278.         <family>0</family>
  1279.         <titleWidth>0</titleWidth>
  1280.         <icon>0</icon>
  1281.         <textAlign>center</textAlign>
  1282.         <font>Chicago</font>
  1283.         <textSize>12</textSize>
  1284.         <textStyle>plain</textStyle>
  1285.         <name>Set</name>
  1286.         <script>on mouseUp
  1287. SetProgWindowWidth
  1288. end mouseUp
  1289. </script>
  1290.     </part>
  1291.     <part>
  1292.         <id>84</id>
  1293.         <type>button</type>
  1294.         <visible> <true /> </visible>
  1295.         <reserved5> 0 </reserved5>
  1296.         <reserved4> 0 </reserved4>
  1297.         <reserved3> 0 </reserved3>
  1298.         <reserved2> 0 </reserved2>
  1299.         <reserved1> 0 </reserved1>
  1300.         <enabled> <true /> </enabled>
  1301.         <rect>
  1302.             <left>387</left>
  1303.             <top>248</top>
  1304.             <right>428</right>
  1305.             <bottom>263</bottom>
  1306.         </rect>
  1307.         <style>shadow</style>
  1308.         <showName> <true /> </showName>
  1309.         <highlight> <false /> </highlight>
  1310.         <autoHighlight> <false /> </autoHighlight>
  1311.         <sharedHighlight> <true /> </sharedHighlight>
  1312.         <family>0</family>
  1313.         <titleWidth>0</titleWidth>
  1314.         <icon>0</icon>
  1315.         <textAlign>center</textAlign>
  1316.         <font>Chicago</font>
  1317.         <textSize>12</textSize>
  1318.         <textStyle>plain</textStyle>
  1319.         <name>Set</name>
  1320.         <script>on mouseUp
  1321. SetProgWindowTextFont
  1322. end mouseUp
  1323. </script>
  1324.     </part>
  1325.     <part>
  1326.         <id>85</id>
  1327.         <type>button</type>
  1328.         <visible> <true /> </visible>
  1329.         <reserved5> 0 </reserved5>
  1330.         <reserved4> 0 </reserved4>
  1331.         <reserved3> 0 </reserved3>
  1332.         <reserved2> 0 </reserved2>
  1333.         <reserved1> 0 </reserved1>
  1334.         <enabled> <true /> </enabled>
  1335.         <rect>
  1336.             <left>387</left>
  1337.             <top>264</top>
  1338.             <right>428</right>
  1339.             <bottom>279</bottom>
  1340.         </rect>
  1341.         <style>shadow</style>
  1342.         <showName> <true /> </showName>
  1343.         <highlight> <false /> </highlight>
  1344.         <autoHighlight> <false /> </autoHighlight>
  1345.         <sharedHighlight> <true /> </sharedHighlight>
  1346.         <family>0</family>
  1347.         <titleWidth>0</titleWidth>
  1348.         <icon>0</icon>
  1349.         <textAlign>center</textAlign>
  1350.         <font>Chicago</font>
  1351.         <textSize>12</textSize>
  1352.         <textStyle>plain</textStyle>
  1353.         <name>Set</name>
  1354.         <script>on mouseUp
  1355. SetProgWindowTextSize
  1356. end mouseUp
  1357. </script>
  1358.     </part>
  1359.     <part>
  1360.         <id>89</id>
  1361.         <type>field</type>
  1362.         <visible> <true /> </visible>
  1363.         <dontWrap> <false /> </dontWrap>
  1364.         <dontSearch> <false /> </dontSearch>
  1365.         <sharedText> <false /> </sharedText>
  1366.         <fixedLineHeight> <true /> </fixedLineHeight>
  1367.         <autoTab> <false /> </autoTab>
  1368.         <lockText> <false /> </lockText>
  1369.         <rect>
  1370.             <left>118</left>
  1371.             <top>264</top>
  1372.             <right>342</right>
  1373.             <bottom>277</bottom>
  1374.         </rect>
  1375.         <style>rectangle</style>
  1376.         <autoSelect> <false /> </autoSelect>
  1377.         <showLines> <false /> </showLines>
  1378.         <wideMargins> <false /> </wideMargins>
  1379.         <multipleLines> <false /> </multipleLines>
  1380.         <reservedFamily> 0 </reservedFamily>
  1381.         <titleWidth>0</titleWidth>
  1382.         <icon>0</icon>
  1383.         <textAlign>left</textAlign>
  1384.         <font>Geneva</font>
  1385.         <textSize>9</textSize>
  1386.         <textStyle>plain</textStyle>
  1387.         <textHeight>9</textHeight>
  1388.         <name>TextSize</name>
  1389.         <script></script>
  1390.     </part>
  1391.     <part>
  1392.         <id>90</id>
  1393.         <type>field</type>
  1394.         <visible> <true /> </visible>
  1395.         <dontWrap> <false /> </dontWrap>
  1396.         <dontSearch> <false /> </dontSearch>
  1397.         <sharedText> <false /> </sharedText>
  1398.         <fixedLineHeight> <true /> </fixedLineHeight>
  1399.         <autoTab> <false /> </autoTab>
  1400.         <lockText> <false /> </lockText>
  1401.         <rect>
  1402.             <left>209</left>
  1403.             <top>305</top>
  1404.             <right>252</right>
  1405.             <bottom>318</bottom>
  1406.         </rect>
  1407.         <style>rectangle</style>
  1408.         <autoSelect> <false /> </autoSelect>
  1409.         <showLines> <false /> </showLines>
  1410.         <wideMargins> <false /> </wideMargins>
  1411.         <multipleLines> <false /> </multipleLines>
  1412.         <reservedFamily> 0 </reservedFamily>
  1413.         <titleWidth>0</titleWidth>
  1414.         <icon>0</icon>
  1415.         <textAlign>left</textAlign>
  1416.         <font>Geneva</font>
  1417.         <textSize>9</textSize>
  1418.         <textStyle>plain</textStyle>
  1419.         <textHeight>9</textHeight>
  1420.         <name>Max Count</name>
  1421.         <script></script>
  1422.     </part>
  1423.     <content>
  1424.         <layer>card</layer>
  1425.         <id>19</id>
  1426.         <text>MaxCount:</text>
  1427.     </content>
  1428.     <content>
  1429.         <layer>card</layer>
  1430.         <id>20</id>
  1431.         <text>Loc:</text>
  1432.     </content>
  1433.     <content>
  1434.         <layer>card</layer>
  1435.         <id>30</id>
  1436.         <text>Fraction:</text>
  1437.     </content>
  1438.     <content>
  1439.         <layer>background</layer>
  1440.         <id>16</id>
  1441.         <text>Card 1 of 2</text>
  1442.     </content>
  1443.     <content>
  1444.         <layer>card</layer>
  1445.         <id>41</id>
  1446.         <text>Text:</text>
  1447.     </content>
  1448.     <content>
  1449.         <layer>card</layer>
  1450.         <id>45</id>
  1451.         <text>WindowName:</text>
  1452.     </content>
  1453.     <content>
  1454.         <layer>card</layer>
  1455.         <id>44</id>
  1456.         <text>ProgressWindow</text>
  1457.     </content>
  1458.     <content>
  1459.         <layer>card</layer>
  1460.         <id>28</id>
  1461.         <text>28,21</text>
  1462.     </content>
  1463.     <content>
  1464.         <layer>card</layer>
  1465.         <id>61</id>
  1466.         <text>Width:</text>
  1467.     </content>
  1468.     <content>
  1469.         <layer>card</layer>
  1470.         <id>63</id>
  1471.         <text>TextFont:</text>
  1472.     </content>
  1473.     <content>
  1474.         <layer>card</layer>
  1475.         <id>65</id>
  1476.         <text>TextSize:</text>
  1477.     </content>
  1478.     <content>
  1479.         <layer>card</layer>
  1480.         <id>62</id>
  1481.         <text>300</text>
  1482.     </content>
  1483.     <content>
  1484.         <layer>card</layer>
  1485.         <id>89</id>
  1486.         <text>14</text>
  1487.     </content>
  1488.     <content>
  1489.         <layer>card</layer>
  1490.         <id>90</id>
  1491.         <text>100</text>
  1492.     </content>
  1493.     <content>
  1494.         <layer>background</layer>
  1495.         <id>19</id>
  1496.         <text>ProgressWindoid XFCN
  1497. Args: WindowName, Loc, [Width, Text, Fraction, TextFont, TextSize]</text>
  1498.     </content>
  1499.     <content>
  1500.         <layer>background</layer>
  1501.         <id>20</id>
  1502.         <text><span class="style2">This HyperCard external window command creates a windoid that can be used
  1503.     to show progress of a lengthy operation.
  1504.     
  1505.     The XFCN is called once and if successful, leaves an XWindoid which 
  1506.     HyperCard will subsequently manage.  A successful call is indicated
  1507.     by an empty return value from the XFCN.  If the return value is not
  1508.     empty, then it should be interpreted as an error message.
  1509.     
  1510.     All interaction with the window takes place by getting and setting
  1511.     its properties (see below) and through HyperCard‚Äôs open, close, show,
  1512.     and hide commands.
  1513.     
  1514.     The WindowName argument is the name that the window will be given.  It
  1515.     is required.  After creating the window, this name will be used from
  1516.     HyperTalk to refer to it.
  1517.  
  1518.     The Loc argument is the point that will become the upper-left corner
  1519.     of the windoid.  It is a two-item string in the form ‚Äú20,50‚Äù.  It is 
  1520.     a card-relative number, not screen relative.  It is required.
  1521.     
  1522.     The optional Width argument is total width of the windoid in pixels.  The 
  1523.     minimum width is 140 pixels.  The maximum is 1200 pixels.  The default
  1524.     is 250 pixels.
  1525.     
  1526.     The optional Text argument is the text that appears above the
  1527.     progress bar in the windoid.  It may be empty.  It defaults to ‚ÄúProgress:‚Äù.
  1528.     
  1529.     The optional Fraction argument is the Fraction that the XWindoid
  1530.     starts with when it is created.  It is a floating point number between
  1531.     0.0 and 1.0.  It defaults to 0.0.
  1532.     
  1533.     The optional TextFont argument is the font that will be used for the text
  1534.     in the windoid.  The name of the font (e.g. ‚ÄúHelvetica‚Äù) is used to specify
  1535.     the font.  The default font is whatever font corresponds to 0 on the current
  1536.     system (usually Geneva).
  1537.     
  1538.     The optional TextSize argument is the size of the text in the window.  It
  1539.     is 12 by default.  The minimum size is 1 point and the maximum size is 127
  1540.     points.
  1541.     
  1542.     All of the optional arguments correspond to HyperCard properties of the
  1543.     windoid.  These are: the width, the text, the fraction, the textFont, and
  1544.     the textSize.
  1545.     
  1546.     In addition to these special properties, the windoid also supports 
  1547.     HyperCard‚Äôs standard window properties: the loc, the visible, and the
  1548.     properties (which returns a list of the special properties of the windoid).</span><span class="style3"></span></text>
  1549.     </content>
  1550.     <content>
  1551.         <layer>card</layer>
  1552.         <id>29</id>
  1553.         <text>.78</text>
  1554.     </content>
  1555.     <content>
  1556.         <layer>card</layer>
  1557.         <id>64</id>
  1558.         <text>Helvetica</text>
  1559.     </content>
  1560.     <content>
  1561.         <layer>card</layer>
  1562.         <id>40</id>
  1563.         <text>Making Progress!!</text>
  1564.     </content>
  1565.     <name></name>
  1566.     <script>‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ ProgressWindoid Test Drive Card ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  1567. ••••••
  1568. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ The code on this card is not general-purpose.
  1569. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ It simply drives the interface which allows for quick
  1570. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ testing of the ProgressWindoid XFCN.
  1571. ••••••
  1572. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ For a Package to manage ProgressWindoids, see the next card.
  1573.  
  1574. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Creating ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  1575.  
  1576. on CreateProgressWindoid
  1577. put card field "Window Name" into WindowName
  1578.  
  1579. if there is a window WindowName then
  1580. answer "There is a already a window named" && WindowName && "."
  1581. exit CreateProgressWindoid
  1582. end if
  1583.  
  1584. put card field "Loc" into InitialLoc
  1585. put card field "Width" into InitialWidth
  1586. put card field "Text" into InitialText
  1587. put card field "Fraction" into InitialFraction
  1588. put card field "TextFont" into InitialTextFont
  1589. put card field "TextSize" into InitialTextSize
  1590.  
  1591. put ProgressWindoid(¬¨
  1592. WindowName, ¬¨
  1593. InitialLoc, ¬¨
  1594. InitialWidth, ¬¨
  1595. InitialText, ¬¨
  1596. InitialFraction, ¬¨
  1597. InitialTextFont, ¬¨
  1598. InitialTextSize) into XFCNResult
  1599.  
  1600. if "‚Ä¢" is in XFCNResult then
  1601. put XFCNResult into ErrorMessage
  1602. answer ErrorMessage
  1603. exit CreateProgressWindoid
  1604. end if
  1605.  
  1606. show window WindowName
  1607. end CreateProgressWindoid
  1608.  
  1609. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Showing, Hiding, Closing ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  1610.  
  1611. on ShowProgressWindoid
  1612. put card field "Window Name" into WindowName
  1613. show window WindowName
  1614. end ShowProgressWindoid
  1615.  
  1616. on HideProgressWindoid
  1617. put card field "Window Name" into WindowName
  1618. hide window WindowName
  1619. end HideProgressWindoid
  1620.  
  1621. on CloseProgressWindoid
  1622. put card field "Window Name" into WindowName
  1623. close window WindowName
  1624. end CloseProgressWindoid
  1625.  
  1626. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Getting properties ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  1627.  
  1628. on GetProgWindowLoc
  1629. put card field "Window Name" into WindowName
  1630. put the loc of window WindowName into card field "Loc"
  1631. end GetProgWindowLoc
  1632.  
  1633. on GetProgWindowText
  1634. put card field "Window Name" into WindowName
  1635. put the text of window WindowName into card field "Text"
  1636. end GetProgWindowText
  1637.  
  1638. on GetProgWindowWidth
  1639. put card field "Window Name" into WindowName
  1640. put the width of window WindowName into card field "Width"
  1641. end GetProgWindowWidth
  1642.  
  1643. on GetProgWindowFraction
  1644. put card field "Window Name" into WindowName
  1645. put the fraction of window WindowName into card field "Fraction"
  1646. end GetProgWindowFraction
  1647.  
  1648. on GetProgWindowTextSize
  1649. put card field "Window Name" into WindowName
  1650. put the textSize of window WindowName into card field "TextSize"
  1651. end GetProgWindowTextSize
  1652.  
  1653. on GetProgWindowTextFont
  1654. put card field "Window Name" into WindowName
  1655. put the textFont of window WindowName into card field "TextFont"
  1656. end GetProgWindowTextFont
  1657.  
  1658. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Setting properties ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  1659.  
  1660. on SetProgWindowLoc
  1661. put card field "Window Name" into WindowName
  1662. if card field "Loc" is a point
  1663. then set the loc of window WindowName to card field "Loc"
  1664. end SetProgWindowLoc
  1665.  
  1666. on SetProgWindowText
  1667. put card field "Window Name" into WindowName
  1668. set the text of window WindowName to card field "Text"
  1669. end SetProgWindowText
  1670.  
  1671. on SetProgWindowWidth
  1672. put card field "Window Name" into WindowName
  1673. set the width of window WindowName to card field "Width"
  1674. end SetProgWindowWidth
  1675.  
  1676. on SetProgWindowFraction
  1677. put card field "Window Name" into WindowName
  1678. set the fraction of window WindowName to card field "Fraction"
  1679. end SetProgWindowFraction
  1680.  
  1681. on SetProgWindowTextSize
  1682. put card field "Window Name" into WindowName
  1683. set the textSize of window WindowName to card field "TextSize"
  1684. end SetProgWindowTextSize
  1685.  
  1686. on SetProgWindowTextFont
  1687. put card field "Window Name" into WindowName
  1688. set the textFont of window WindowName to card field "TextFont"
  1689. end SetProgWindowTextFont
  1690.  
  1691. ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢ Tests ‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢‚Ä¢
  1692.  
  1693. ‚Ä¢‚Ä¢ Run a simple loop ‚Ä¢‚Ä¢
  1694. on TestProgressWindoidLoop
  1695. put card field "Window Name" into WindowName
  1696. put card field "Max Count" into MaxCount
  1697. repeat with Count = 1 to MaxCount
  1698. set the text of window WindowName to Count && "of" && MaxCount
  1699. set the fraction of window WindowName to Count/MaxCount
  1700. end repeat
  1701. end TestProgressWindoidLoop
  1702.  
  1703. ‚Ä¢‚Ä¢ Track mouse‚Äôs horizontal position on the card ‚Ä¢‚Ä¢
  1704.  
  1705. on TestProgressWindoidMouse
  1706. put card field "Window Name" into WindowName
  1707. put card field "Max Count" into MaxCount
  1708. put the text of window WindowName into OldText
  1709. put the fraction of window WindowName into OldFraction
  1710. set cursor to crosshair
  1711. set the text of window WindowName to "Tracking Mouse:"
  1712. repeat until the mouse is up
  1713. set the fraction of window WindowName to the mouseH / the width of card window
  1714. end repeat
  1715. set the text of window WindowName to OldText
  1716. set the fraction of window WindowName to OldFraction
  1717. end TestProgressWindoidMouse
  1718.  
  1719. </script>
  1720. </card>
  1721.  
  1722.  
  1723.